package com.woniuxy.movie.user.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

@Data
public class RegisterAccountForm {
    /**
     * 手机号
     */
    @Pattern(regexp = "^\\d{11}")
    private String accountPhone;
    /**
     * 用户名
     */
    @Pattern(regexp = "^[a-zA-Z][a-zA-Z\\d]{1,15}")
    private String accountName;
    /**
     * 密码
     */
    @Length(min = 6)
    private String accountPass;
}
